import { NextResponse } from "next/server"
// import axios from "axios";
export async function GET(request: Request) {
  const response = await fetch('https://jsonplaceholder.typicode.com/posts/2')
  const data = await response.json()
  return NextResponse.json(data)

}

// 如果需要在前端页面中使用，可以从 weather-api.ts 导入
// import { getWeatherData } from '@/ch08/weather-api';